﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="VIP结婚网专门为准新人们提供结婚相关知识和消费指南，让消费者通过最简单的办法：点击鼠标来获得结婚所需要的商品或服务。打造最专业的一站式结婚VIP服务平台"  />
        <meta name="keywords" content="常州喜宴,常州婚纱,常州酒店,常州喜糖喜帖,常州新娘,常州礼服,常州摄影,常州跟妆,常州彩妆,常州跟拍,常州婚车,常州婚庆,常州习俗,常州结婚网,常州摄影工作室,常州婚纱会所,常州VIP结婚网" />
        <title>@ViewBag.Title</title>
        <link href="/Assets/Style/base.css" rel="stylesheet" media="all">
        <link href="/Assets/Style/shops.css" rel="stylesheet" media="all">
        <link href="/Assets/Plus/jBox/Skins/GrayCool/jbox.css" rel="stylesheet" type="text/css" />
        <script src="/Assets/script/jquery-1.6.min.js" type="text/javascript"></script>
        <script src="/Assets/Plus/jBox/jquery.jBox-2.3.min.js" type="text/javascript"></script>
        <style type="text/css">
            .login_01{ color: #fff;width: 500px;right: 0px;top: 30px;position: absolute;}
        </style>
        <!--[if IE 6]>
            <script type="text/javascript" src="/Assets/script/DD_belatedPNG_0.0.8a-min.js" ></script>
            <script type="text/javascript">
                DD_belatedPNG.fix('.logo_01,.nav ul li a:hover,.nav_on');
            </script>
        <![endif]-->
        @using Super.Infrastructure
        @{
            var adp = new DbContextAdapter();
            var shopService = new ShopsService(adp);

            var shopId = ViewBag.ShopId;
            Shop shop = shopService.GetShopById(shopId);


            var id = ViewContext.RouteData.Values["id"];

            string bgimg = string.Empty;
            string catetoryName = string.Empty;
            if (shop != null)
            {
                var attachementService = new AttachementService(adp);
                bgimg = shop.BgImage == null || shop.BgImage == 0 ? "/assets/image/shops/bg_03.jpg" : attachementService.GetFileUrl((int)shop.BgImage);

                var categoryService = new CategoryService(adp);
                var categoryModel = categoryService.getCategoryByID(shop.Category.ParentId);
                catetoryName = categoryModel==null?"无":categoryModel.Name;
            }

            var _userService = new UserService(adp);
            var messageService = new MessageService(adp);
            var loginUser = SuperService.LoginUser.User;

        }
      
    </head>
<body>
    <div class="head_log">
        <div class="header_con mc">
            <a href="/home/" class="logo_01"></a>
            <!--/logo-->
            @{
                if (SuperService.LoginUser.UserID > 0)
                {
                <div class="login_01 pr10" style="width: auto;">
                    <table border="0">
                        <tr>
                            <td width="23">
                                <img src="@_userService.GetAvatarUrl(SuperService.LoginUser.User, AvatarSizeEnum.Small)" width="24" height="24" /></td>
                            <td><a href="/usercenter"><b class="c_blue_2">@loginUser.UserName</b> </a>，欢迎您！ 积分（<b class="c_red">@loginUser.Integral</b>）站内信（<a href="/usercenter/message"> <b class="c_green">@messageService.GetUserUnReadMessage(loginUser.ID) </b></a>）<a href="/Login?a=out" class="c_fff">退出</a> </td>
                        </tr>
                    </table>
                </div>

                }
                else
                {
                <div class="login_01 pr10" style="width: auto;">
                    <a href="/login" class="login_l c_white ">登录</a>
                    
                    <a href="/register" class="login_r c_white">注册</a>
                </div>
  
                }
            }
        </div>
    </div>
    <!--/头部-->
    <div class="main_bg" style="background: url(@bgimg);" >
        <div class="mian mc">
            <div class="contact pt10">
                @*                <div class="to_i">
                    <a href="#">首页</a><a href="#">婚纱摄影</a></div>*@
                <!--/to_i-->
                <div class="n_page">
                    <a href="/home">首页</a>>><a href="/shoplist/@shop.Category.ParentId">@catetoryName</a>>><a href="/shoplist/@shop.Category_ID">@shop.Category.Name</a>
                </div>
                <h2 class="c_fff pa10">@shop.Title</h2>
                <!--0_0-->
                <div class="h_auto">
                    <div class="nav">
                        <ul>
                            <li><a href="javascript:void(0)" onclick="Href(this.id)" id="index">店铺首页</a></li>
                            <li><a href="javascript:void(0)" onclick="Href(this.id)" id="forum">相册&交流</a></li>
                            <li><a href="javascript:void(0)" onclick="Href(this.id)" id="offer">商铺报价</a></li>
                            <li style="width: 130px;"><a href="javascript:void(0)" class="nav_05" onclick="Href(this.id)" id="about">简介&联系我们</a></li>
                            <!--class="nav_05"的hover样式class="nav_05_on"-->
                        </ul>
                    </div>
                    <!--/nav-->
                    @Html.Action("shopleft", "Shop")
                    @*				//@RenderPage("~/Views/Shared/_ShopLeftLayout.cshtml")*@
                    <!--mian_left-->
                    @RenderBody()
                    <!--mian_right-->
                </div>
                <!--neirong-->
            </div>
            <!--contact-->
        </div>
        <!--mian-->
    </div>
    <!--/主体-->
    @RenderPage("~/Views/Shared/_IncludeFooter.cshtml")
</body>
</html>
<script type="text/javascript">
    var href = window.location.href.split('?')[0].split('/');

    var navOn = "index";
    var shopId = href[4];
    if (href[5] != undefined && href[5] != "") {
        navOn = href[5].toString().split('-')[0];
    }

    $("#" + navOn).addClass("nav_on");
    if (navOn == "create")
        $("#forum").addClass("nav_on");
    if (navOn == "about")
        $("#about").addClass("nav_05_on");
    function Href(value) {
        window.location.href = "/shop/" + '@id' + "/" + value;
    }
</script>
